package com.kuwou.workobject.Utils;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.toolkit.Db;
import com.kuwou.workobject.pojo.entity.SingerList;

public class SingerListUtil {

    /**
     * 分页获取歌手列表
     */
    public static IPage<SingerList> getSingerList(int pageNum,int pageSize){
        // 创建分页对象
        Page<SingerList> pageInstance = new Page<>(pageNum, pageSize);
        return Db.page(pageInstance, SingerList.class);
    }
}
